import requests from './requests.js'
export const loginAPI=(obj)=>{
	return requests({
		url:'/api/login',
		method:'post',
		data:obj
	})
}

export const registerAPI=(obj)=>{
	return requests({
		url:'/api/register',
		method:'post',
		data:obj
	})
}

export const getSaveTypeAPI=()=>{
	return requests({
		url:'/getSaveType',
		method:'get'
	})
}

export const saveMoenyAPI=(obj)=>{
	return requests({
		url:'/saveMoeny',
		method:'post',
		data:obj
	})
}

export const getSaveDetailAPI=()=>{
	return requests({
		url:'/getSaveDetail',
		method:'get'
	})
}

export const getTypeSavingDetailAPI=(id)=>{
	console.log(id)
	return requests({
		url:`/getTypeSavingDetail?id=${id}`,
		method:'get'
	})
}